Game xếp hình Tetris C#
- Utiles.cs
- project /
1 using System;
2 using System.Windows.Forms;
3
4
5 namespace Tetris
6 {
7 /// <summary>
8 /// Descripción breve de Utiles.
9 /// </summary>
10 public class Utiles
11 {
12 public static bool ResolucionCorrecta(int ancho, int alto)
13 {
14 bool correcto = false;
15 System.Drawing.Rectangle pantalla = Screen.PrimaryScreen.Bounds;
16 if (pantalla.Width >= ancho && pantalla.Height >= alto)
17 correcto = true;
18 return correcto;
19
20 }
21 }
22 }
2 using System.Windows.Forms;
3
4
5 namespace Tetris
6 {
7 /// <summary>
8 /// Descripción breve de Utiles.
9 /// </summary>
10 public class Utiles
11 {
12 public static bool ResolucionCorrecta(int ancho, int alto)
13 {
14 bool correcto = false;
15 System.Drawing.Rectangle pantalla = Screen.PrimaryScreen.Bounds;
16 if (pantalla.Width >= ancho && pantalla.Height >= alto)
17 correcto = true;
18 return correcto;
19
20 }
21 }
22 }